package com.parenting.request;

import com.parenting.response.CommodityListResponse;
import com.parenting.util.base.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SearchCommodityRequest对象", description="添加商品")
public class SearchCommodityRequest extends BaseRequest<CommodityListResponse> {

    @ApiModelProperty(value = "商品名称")
    @NotBlank(message = "商品名称/货号 不能为空")
    private String condition;

    @ApiModelProperty(value = "是否上架（1上架，2下架）")
    private Integer shelves;

    @ApiModelProperty(value = "是否删除（1否，2是 默认 1）")
    private Integer commodityRemove;

    @ApiModelProperty(value = "创建时间")
    private Date createDate;


}
